package com.ilancuo.thinkinjava.chapter_10;

public class Parcel9 {
    public Destination destination(String dest) {
        return new Destination() {

            private String label = dest;

            @Override
            public String readLabel() {
                return label;
            }
        };
    }

    public static void main(String[] args) {
        Parcel9 p = new Parcel9();
        p.destination("Peking");
    }
}
